/**
 * @Author: yy
 * @Date: 2019/6/20
 * @Last Modified by: mikey.zhaopeng
 * @Last Modified time: 2019-12-03 17:43:43
 */
import axios from '@/api/fetch';
//import * as types from './types';
import SERVER from '@/api/server';
//  获取线索参数列表
//export const queryCluesPrameter = params => axios.get(`${SERVER.SYSMANAGE}/consultantWork/consultWorkInfo`, params);

//  查询来源大类列表
//export const getCategories = params => axios.get(`${SERVER.CYXDMS_CLUE}/clue/clueSourceLargeCatagory`, { params });

// 线索热度定义分页查询
export const getClueParameter = params => axios.get(`${SERVER.CYXDMS_CLUE}/basedata/clueHeatSetup`, {params});

// 根据ID查询具体数据
export const getIdParameter = (id, params) => axios.get(`${SERVER.CYXDMS_CLUE}/basedata/clueHeatSetup/${id}`, {params} );

// 新增
export const addClueParameter = params => axios.post(`${SERVER.CYXDMS_CLUE}/basedata/clueHeatSetup`, params );

// 编辑
export const editClueParameter = (id, params) => axios.put(`${SERVER.CYXDMS_CLUE}/basedata/clueHeatSetup/${id}`, params );

// 获取线索来源树
export const queryClueSourceList = params => axios.get(`${SERVER.CYXDMS_CLUE}/basedata/clueSource/queryTreeSource`,{ params } );

// 线索热度上移下移
export const updateRankById = params => axios.get(`${SERVER.CYXDMS_CLUE}/basedata/clueHeatSetup/updateRankById`, {params});

// 获取所有线索热度级别定义
export const getAllHeatUp = params => axios.get(`${SERVER.CYXDMS_CLUE}/basedata/clueHeatSetup/getAllHeatUp`, {params});
